package com.blueocean_health.care.management.domain.dto;

import com.blueocean_health.care.management.common.excel.ExcelResources;

/**
 * 提成汇总表详情页面的excel模板
 * @author cp
 *
 */
public class SelectCareSalarySummaryDetailRespDto implements Comparable<SelectCareSalarySummaryDetailRespDto> {

	private String workingDay;
	private String workId;
	private String workName;
	private String patientName;
	private String dayPay;
	private String outworkerName;
	private String orderId;
	private String receiptNumber;
	private String deptName;
	private String orderType;
	private String orderTypeName;



	public SelectCareSalarySummaryDetailRespDto() {
	}
	public SelectCareSalarySummaryDetailRespDto(SelectCareSalaryDbDto dto) {
		this.workId = dto.getWorkId();
		this.workName = dto.getWorkName();
		this.patientName = dto.getPatientName();
		this.outworkerName = dto.getUserRealName();
		this.orderId = dto.getOrderId();
		this.receiptNumber = dto.getReceiptNumber();
		this.deptName = dto.getDeptName();
		this.orderType = dto.getOrderType();
	}
	@ExcelResources(title = "发生日期", order = 1)
	public String getWorkingDay() {
		return workingDay;
	}
	public void setWorkingDay(String workingDay) {
		this.workingDay = workingDay;
	}

	public String getWorkId() {
		return workId;
	}
	public void setWorkId(String workId) {
		this.workId = workId;
	}
	@ExcelResources(title = "护工", order = 2)
	public String getWorkName() {
		return workName;
	}
	public void setWorkName(String workName) {
		this.workName = workName;
	}
	@ExcelResources(title = "患者", order = 3)
	public String getPatientName() {
		return patientName;
	}
	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}
    @ExcelResources(title = "科室", order = 4)
    public String getDeptName() {
        return deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
	@ExcelResources(title = "提成(元)", order = 5,isNum = 1)
	public String getDayPay() {
		return dayPay;
	}
	public void setDayPay(String dayPay) {
		this.dayPay = dayPay;
	}
    @ExcelResources(title = "收据编号", order = 6)
    public String getReceiptNumber() {
        return receiptNumber;
    }

    public void setReceiptNumber(String receiptNumber) {
        this.receiptNumber = receiptNumber;
    }

	@ExcelResources(title = "签单人", order = 7)
	public String getOutworkerName() {
		return outworkerName;
	}
	public void setOutworkerName(String outworkerName) {
		this.outworkerName = outworkerName;
	}
    @ExcelResources(title = "订单类型", order = 8)
    public String getOrderTypeName() {
        return orderTypeName;
    }

    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }

	@ExcelResources(title = "关联订单号", order = 9)
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}





    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }



    @Override
	public String toString() {
		return "SelectCareSalaryRespDto [workingDay=" + workingDay + ", workId=" + workId + ", workName=" + workName
				+ ", patientName=" + patientName + ", dayPay=" + dayPay + ", outworkerName=" + outworkerName
				+ ", orderId=" + orderId + "]";
	}
	@Override
	public int compareTo(SelectCareSalarySummaryDetailRespDto o) {
		if(o.getWorkingDay().equals(this.workingDay)){
			return this.workId == null ? 1 : this.workId.compareTo(o.getWorkId());
		}
		return o.getWorkingDay().compareTo(this.workingDay);
	}
	
	
	
	
}
